{extend name="public/base" /}
{block name="body"}
<!--主题-->
<div class="page-header">
    <h1>
        您当前操作
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            添加<strong></strong>分类
        </small>
    </h1>
</div>
<div class="row">
    <div class="col-xs-12">
        <form class="form-horizontal" name="admin_rule_edit" id="myform" method="post" action="{:url('Category/CategoryAdd')}">

            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 分类名称：</label>

                <div class="col-sm-9">
                    <input type="text" name="name" id="name" value="" class="col-xs-10 col-sm-5"/>
                        <span class="help-inline col-xs-12 col-sm-7">
							<span class="middle" id="resone"></span>
						</span>
                </div>
            </div>
            <div class="space-4"></div>
			
			 <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 父级分类： </label>

                <div class="col-sm-3">
						<select class="col-xs-10 col-sm-5" name="pid">
							<option value="0">--默认顶级--</option>
                            {volist name="list" id="vo"}
                            <option value="{$vo.id}" {if condition="$vo['id'] eq $pid"} selected {/if}>{$vo.title_show}</option>
                            {/volist}
						</select>
                        <span class="help-inline col-xs-12 col-sm-7">
							<span class="middle" id="restwo"></span>
						</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 是否启用： </label>

                <div class="col-sm-9" style="padding-top:5px;">
                    <input name="status" value="1" class="ace ace-switch ace-switch-5" type="checkbox" checked/>
                    <span class="lbl"></span>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 排序（从小到大）： </label>

                <div class="col-sm-9">
                    <input type="text" name="sort" id="sort" value="0" class="col-xs-10 col-sm-1"/>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        保存
                    </button>

                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        重置
                    </button>
					&nbsp; &nbsp; &nbsp;
                    <a href="{:url('Category/Index')}" class="btn btn-success">
                        <i class="ace-icon fa fa-reply bigger-110"></i>
                        返回
                    </a>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="hr hr-24"></div>
{/block}